﻿@model DFYE.Web.Models.SiteLibrary

@{
    ViewBag.Title = "intro";
}

<h2>联系方式</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)



        @Html.HiddenFor(model => model.ID)


        <div class="editor-field">
            
            <textarea id="companyIntro" name="intro" style="width:100%; height:400px;">@Model.value</textarea>
            @Html.ValidationMessageFor(model => model.value)
        </div>

        @Html.HiddenFor(model => model.symbol)

        <p>

            <input type="submit" value="保存"/>
        </p>

}


@section Head{
<script type="text/javascript">
    $(document).ready(function(){

        $('#companyIntro').xheditor({ 
            skin: 'nostyle',
            tools: "mytools",
            upBtnText: '上传',
            upLinkUrl: '/upload/companyIntro',
            upImgUrl: '/upload/companyIntro',
            upFlashUrl: '/upload/companyIntro',
            upMediaUrl: '/upload/companyIntro' 
        });
        })
</script>
}